<?php

namespace App\Models\Edu;

use Illuminate\Database\Eloquent\Model;

class Category extends Model
{
	protected $table = 'edu_categories';

    protected $with = ['term'];

    protected $guarded = array();


    public function clases()
    {
        return $this->hasMany('\App\Models\Edu\Clase');
    }


    public function users()
    {
        return $this->hasMany('\App\Models\Edu\Tuser');
    }


    public function branch()
    {
        return $this->belongsTo('\App\Models\Mgt\Branch');
    }


    public function type()
    {
        return $this->belongsTo('\App\Models\Edu\Type');
    }


    public function term()
    {
        return $this->belongsTo('\App\Models\Edu\Term');
    }

}